package com.example.smart_community.service;

import com.example.smart_community.mapper.HouseinfoMapper;
import com.example.smart_community.po.Houseinfo;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HouseinfoService {
    @Autowired
    private HouseinfoMapper houseinfoMapper;
    public List<Houseinfo> selectByBuild(Integer build){
        PageHelper.startPage(1,4);
        return houseinfoMapper.selectByBuild(build);
    }
}
